<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="decorator" content="default"/>
	<title>常规接种（3-1-3）</title>
	<style>
		body{margin:0;padding:0;height:90%!important;}
		#exportTable{text-align: center;}
		#exportTable .title{font-size: 20px;}
		#exportTable .b{font-weight: bold;}
		#exportTable .subtitle{font-size: 16px; font-weight: normal;}
		#exportTable .text-left{text-align: left !important;}
		#exportTable .text-right{text-align: left !important;}
		#exportTable .tips{line-height: 16px; font-size: 14px;}
	</style>
	<script src='http://localhost:8000/CLodopfuncs.js'></script>
	<script src="${ctxStatic}/js/LodopFuncs.js"></script>
	<script src="${ctxStatic}/js/ExportExcel.js"></script>
	<script type="text/javascript">
    	$(function() {
            $("#all").click(function() {
                $('input[name="vaccname"]').prop("checked",true); 
            });
            
            $("#not").click(function() {
                $('input[name="vaccname"]').prop("checked",false); 
            });
            
            $("#mcv").click(function(){
             	$('input[name="vaccname"]').prop("checked",false); 
            	$('input[value="mr"]').prop("checked",true);
            	$('input[value="mmr"]').prop("checked",true);
            	$('input[value="mm"]').prop("checked",true);
            	$('input[value="mv"]').prop("checked",true);
            });
            
            $("#rcv").click(function(){
             	$('input[name="vaccname"]').prop("checked",false); 
            	$('input[value="mr"]').prop("checked",true);
            	$('input[value="mmr"]').prop("checked",true);
            });
            
            $("#mumcv").click(function(){
             	$('input[name="vaccname"]').prop("checked",false); 
            	$('input[value="mmr"]').prop("checked",true);
            	$('input[value="mm"]').prop("checked",true);
            });
            
            $("#hepa").click(function(){
             	$('input[name="vaccname"]').prop("checked",false); 
            	$('input[value="hepal"]').prop("checked",true);
            	$('input[value="hepai"]').prop("checked",true);
            });
        });
      
		$(function(){
			$("#confirmBtn").click(function(){
				 text1 = $("input:checkbox[name='vaccname']:checked").siblings('span').map(function(index,elem) {
		            return $(elem).text();
		         }).get().join('/');
		         text2 = $("input:checkbox[name='vaccname']:checked").map(function(index,elem) {
	            	return $(elem).val();
	       		 }).get().join('/');
	       		 text3 = $("input:radio[name='vaccSelect']:checked ").map(function(index,elem) {
	            	return $(elem).val();
	       		 }).get().join('/');
	       		 parent.openbox6_1back(text1,text2,text3);
	       		 parent.closeForm();
			});
		});
		
		function cancle(){
			parent.closeForm();
		}
</script>
</head>
<body>
	<div id="selectbox" style="margin-top:10px;">
		<label style="margin-left:18px;" ><input id="all" name="vaccSelect" value="" type="radio"/><span>全选</span></label>&nbsp;&nbsp;
		<label><input id="not" name="vaccSelect" value="" type="radio" />&nbsp;<span>全不选</span></label>&emsp;|
		<label><input id="mcv" name="vaccSelect" type="radio" value="MCV"/><span>MCV(MV、MR、MM、MMR)</span></label><br>&nbsp;&nbsp;&nbsp;&nbsp;
		<label><input id="rcv" name="vaccSelect" type="radio"  value="RCV"/><span>RCV(MR、MMR)</span></label>
		<label><input id="mumcv" name="vaccSelect" type="radio"  value="MumCV"/><span>MumCV(MM、MMR)</span></label>
		<label style="margin-left:10px;" ><input id="hepa" name="vaccSelect" type="radio"  value="HepA"/><span>HepA</span></label>
	</div> 
	<div style="margin:5px 20px;">
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="hepb"/><span>乙肝</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="bcg"/><span>卡介苗</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="pv"/><span>脊灰</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="dtp"/><span>百白破</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="dt"/><span>白破</span></label><br>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mr"/><span>麻风</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mmr"/><span>麻腮风</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mm"/><span>麻腮</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mv"/><span>麻疹</span></label><br>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mpv"/><span>流脑A</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="mpvc"/><span>流脑A+C</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="jevl"/><span>乙脑（减毒）</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="jevi_Vero"/><span>乙脑（灭活）</span></label><br>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="hepal"/><span>甲肝（减毒）</span></label>
		<label style="margin:5px;"><input name="vaccname" type="checkbox"  value="hepai"/><span>甲肝（灭活）</span></label>
	</div>
	<div style="margin-right:20px; margin-bottom: 10px;">
		<button  id="confirmBtn" style="margin-top: 25px;margin-left: 285px;"  class="btn btn-primary">确定</button> 
		<button style="margin-top: 25px;margin-left: 15px;" onclick="javascript:cancle();" class="btn btn-default">取消</button>
	</div>
</body>
</html>